package com.chaokang.dao;

import com.chaokang.dao.entity.CommonUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface CommonUserEntityMapper {
 CommonUserEntity getUserById(@Param("id") int id);
 CommonUserEntity getUserByIphone(@Param("iphone") String iphone);
 int insertCommonUser(CommonUserEntity commonUserEntity);
 int updateVerifyCode(CommonUserEntity commonUserEntity);
 CommonUserEntity getUserByUsername(@Param("username") String username);
 int updatePassword(CommonUserEntity commonUserEntity);
 Integer updateCommonUser(CommonUserEntity commonUserEntity);
}
